

        <g:set var="entityName" value="${message(code: 'leader.label', default: 'Leader')}" />
            <g:form method="post" >
                <g:hiddenField name="id" value="${leaderInstance?.id}" />
                <g:hiddenField name="version" value="${leaderInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="username"><g:message code="leader.username.label" default="Username" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaderInstance, field: 'username', 'errors')}">
                                    <g:textField name="username" maxlength="100" value="${leaderInstance?.username}" />
                                </td>
                            </tr>
                         
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="enabled"><g:message code="leader.enabled.label" default="Enabled" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaderInstance, field: 'enabled', 'errors')}">
                                    <g:checkBox name="enabled" class="checkbox" value="${leaderInstance?.enabled}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="area"><g:message code="leader.area.label" default="Area" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaderInstance, field: 'area', 'errors')}">
                                    <g:textField name="area" value="${leaderInstance?.area}" />
                                </td>
                            </tr>
                         
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
